package daily.may0514;

import java.util.TreeSet;

public class TreeSetTest {
    public static void main(String[] args) {
        TreeSet<Integer> integersTreeSet = new TreeSet<>();
        integersTreeSet.add(999);
        integersTreeSet.add(333);
        integersTreeSet.add(666);
        integersTreeSet.add(111);
        integersTreeSet.add(777);
        System.out.println(integersTreeSet);//[111, 333, 666, 777, 999]
        TreeSet<String> stringsTreeSet = new TreeSet<>();
        stringsTreeSet.add("English");
        stringsTreeSet.add("Dream");
        stringsTreeSet.add("Brave");
        stringsTreeSet.add("Active");
        stringsTreeSet.add("Civilization");
        stringsTreeSet.add("Green");
        stringsTreeSet.add("Fashion");
        System.out.println(stringsTreeSet);//[Active, Brave, Civilization, Dream, English, Fashion, Green]
    }
}
